let initdata = {
    arr:[]
}
let shopreducer = (state=initdata,{type,payload})=>{
    switch (type) {
        case "getlist":
            let newarr = [...state.arr]
            newarr = payload
            return {
                ...state,
                arr:newarr
            }
        default :
             return {
                ...state
            }
    }
    
}
export default shopreducer